package com.fly.common.model;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @CLASSNAME: SysUserModel
 * @author: Fly
 * 日期: 2020/6/7  15:59
 * 描述:
 **/

@Table(name = "sys_user")
public class SysUserModel extends BaseModel {
    /**
	 * 
	 */
	private static final long serialVersionUID = 6033700981665724626L;
    //用户姓名
    @Column(name = "user_name")
    private String userName;
    //邮箱
    private String email;
    //手机号
    private String phone;
    //登陆账号
    @Column(name = "login_name")
    private String loginName;

    @Column(name = "salt")
    private String salt;
    //密码
    private String password;
    //（0男 1女）
    private String sex;

    //头像路径
    private String avatar;

    //帐号状态（0正常 1停用）
    private String state;

    //部门id主键
    @Column(name = "department_id")
    private String departmentId;

    @Transient
    private boolean isAdmin = false;

    public boolean isAdmin() {
        return this.isAdmin;
    }

    public void setAdmin(boolean admin) {
        this.isAdmin = admin;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }
}
